package services

import "Sales_system/Dao"

func Getallclass() (error,[]Dao.Goods_class, int64){
	err, detailsData, total := Dao.GetallgoodsClass()
	return err, detailsData, total
}

func Deleteclass(id string) error {
	err := Dao.DeletegoodsClass(id)
	return err
}

func Updateclass(goods Dao.Goods_class) error  {
	err := Dao.UpdategoodsClass(goods)
	return err
}

func Addclass(goods Dao.Goods_class) error {
	err := Dao.AddgoodsClass(goods)
	return err
}